//
// Created by grg on 2020/8/4.
// Copyright (c) 2020 龚任根. All rights reserved.
//

#ifndef TEST_CPP_PROJECT_MIXERCOMPONENT_H
#define TEST_CPP_PROJECT_MIXERCOMPONENT_H

#include "SDL2_mixer/SDL_mixer.h"
#include "string"
#include "GameWindowConfig.h"
#include <map>

using namespace std;

/**
 * //初始化声音🔊
 */
class MixerComponent {
public:
    MixerComponent(){
        //初始化声音🔊
        //Initialize SDL_mixer
        Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 4096);
    }
    ~MixerComponent(){
        Mix_CloseAudio();
    }


};


#endif //TEST_CPP_PROJECT_MIXERCOMPONENT_H
